package com.piece.module.flowable.constants;

public interface ExceptionConstants {

    /**
     * 数据不存在
     */
    String NOT_EXIST = "message.error.not_exist";

    /**
     * 数据被禁用
     */
    String IS_DISABLE = "message.error.disabled";

    /**
     * 读取流程设计异常
     */
    String DESIGN_ERROR = "flowable.design.error";

    /**
     * 字段名重复
     */
    String FORM_FIELD_REPEAT = "flowable.form.field.repeat";

    /**
     * 流程表单未配置
     */
    String MODEL_DEPLOY_FAIL_FORM_NOT_CONFIG = "flowable.model.deploy.fail.form_not_config";

    /**
     * 部署流程失败
     */
    String MODEL_DEPLOY_FAIL_TASK_ASSIGN_RULE_NOT_CONFIG = "flowable.model.deploy.fail.task_assign_rule.not_config";

    String MODEL_DEPLOY_FAIL_TASK_INFO_EQUALS = "flowable.model.deploy.fail.task_info.equals";

    /**
     * 流程标识已存在
     */
    String MODEL_KEY_EXISTS = "flowable.model.key.exists";

    /**
     * 流程定义处于挂起状态
     */
    String PROCESS_DEFINITION_IS_SUSPENDED = "flowable.definition.suspended";

    /**
     * 流程不能被驳回
     */
    String PROCESS_CANNOT_REJECT = "flowable.process.cannot_reject";

    /**
     * 流程不能被撤回
     */
    String PROCESS_CANNOT_BACK = "flowable.process.cannot_back";

    /**
     * 非流程发起人权限限制
     */
    String PROCESS_INSTANCE_NOT_STARTER = "flowable.instance.not_starter";

    String TASK_ASSIGN_RULE_EXISTS = "flowable.task.assign_rule.exists";

    /**
     * 任务不处于未审批状态
     */
    String TASK_COMPLETE_NOT_EXISTS = "flowable.task.complete.not_exists";

    /**
     * 非任务审批人
     */
    String TASK_COMPLETE_NOT_ASSIGN = "flowable.task.complete.not_assign";
}
